<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::SVMClassify类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_s_v_m_classify.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1_s_v_m_classify-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::SVMClassify类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> (Support Vector Machines) classification of a dataset. It can be used both for testing a classifier model and for classify of new data.  
 <a href="classpcl_1_1_s_v_m_classify.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="svm__wrapper_8h_source.html">svm_wrapper.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::SVMClassify 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_s_v_m_classify.png" usemap="#pcl::SVMClassify_map" alt=""/>
  <map id="pcl::SVMClassify_map" name="pcl::SVMClassify_map">
<area href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines)." alt="pcl::SVM" shape="rect" coords="0,0,108,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8a44eed8244805fb26112aef65153b5d"><td class="memItemLeft" align="right" valign="top"><a id="a8a44eed8244805fb26112aef65153b5d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a8a44eed8244805fb26112aef65153b5d">SVMClassify</a> ()</td></tr>
<tr class="memdesc:a8a44eed8244805fb26112aef65153b5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a8a44eed8244805fb26112aef65153b5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31aa9eab4c87ee424344e66b58f64e3b"><td class="memItemLeft" align="right" valign="top"><a id="a31aa9eab4c87ee424344e66b58f64e3b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a31aa9eab4c87ee424344e66b58f64e3b">~SVMClassify</a> ()</td></tr>
<tr class="memdesc:a31aa9eab4c87ee424344e66b58f64e3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a31aa9eab4c87ee424344e66b58f64e3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2e72c9b20d5f0b997b2146da40c75ef"><td class="memItemLeft" align="right" valign="top"><a id="aa2e72c9b20d5f0b997b2146da40c75ef"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#aa2e72c9b20d5f0b997b2146da40c75ef">setInputTrainingSet</a> (std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt; training_set)</td></tr>
<tr class="memdesc:aa2e72c9b20d5f0b997b2146da40c75ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">It adds/store the training set with labelled data. <br /></td></tr>
<tr class="separator:aa2e72c9b20d5f0b997b2146da40c75ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31fc76d6055887a06e08d5e6dc23d5ec"><td class="memItemLeft" align="right" valign="top"><a id="a31fc76d6055887a06e08d5e6dc23d5ec"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a31fc76d6055887a06e08d5e6dc23d5ec">getInputTrainingSet</a> ()</td></tr>
<tr class="memdesc:a31fc76d6055887a06e08d5e6dc23d5ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current training set. <br /></td></tr>
<tr class="separator:a31fc76d6055887a06e08d5e6dc23d5ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f8c738896fa7d85def12eb947891bc4"><td class="memItemLeft" align="right" valign="top"><a id="a1f8c738896fa7d85def12eb947891bc4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a1f8c738896fa7d85def12eb947891bc4">resetTrainingSet</a> ()</td></tr>
<tr class="memdesc:a1f8c738896fa7d85def12eb947891bc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the training set. <br /></td></tr>
<tr class="separator:a1f8c738896fa7d85def12eb947891bc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafd5d50bf3c35d31db549b0bff7595c2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#aafd5d50bf3c35d31db549b0bff7595c2">loadClassifierModel</a> (const char *filename)</td></tr>
<tr class="memdesc:aafd5d50bf3c35d31db549b0bff7595c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read in a classifier model (in svmlight format).  <a href="classpcl_1_1_s_v_m_classify.html#aafd5d50bf3c35d31db549b0bff7595c2">更多...</a><br /></td></tr>
<tr class="separator:aafd5d50bf3c35d31db549b0bff7595c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc0eb03a8962cb637ac99eaf1e2d1afc"><td class="memItemLeft" align="right" valign="top"><a id="afc0eb03a8962cb637ac99eaf1e2d1afc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#afc0eb03a8962cb637ac99eaf1e2d1afc">getClassificationResult</a> (std::vector&lt; std::vector&lt; double &gt; &gt; &amp;out)</td></tr>
<tr class="memdesc:afc0eb03a8962cb637ac99eaf1e2d1afc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the result of the classification. <br /></td></tr>
<tr class="separator:afc0eb03a8962cb637ac99eaf1e2d1afc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42721792e7fbad28333c9cdbcdfb79b4"><td class="memItemLeft" align="right" valign="top"><a id="a42721792e7fbad28333c9cdbcdfb79b4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a42721792e7fbad28333c9cdbcdfb79b4">saveClassificationResult</a> (const char *filename)</td></tr>
<tr class="memdesc:a42721792e7fbad28333c9cdbcdfb79b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the classification result in an extern file. <br /></td></tr>
<tr class="separator:a42721792e7fbad28333c9cdbcdfb79b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5bb9b2305d89e5006ab729657bd139"><td class="memItemLeft" align="right" valign="top"><a id="a9e5bb9b2305d89e5006ab729657bd139"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a9e5bb9b2305d89e5006ab729657bd139">setClassifierModel</a> (<a class="el" href="structpcl_1_1_s_v_m_model.html">SVMModel</a> model)</td></tr>
<tr class="memdesc:a9e5bb9b2305d89e5006ab729657bd139"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the classifier model. <br /></td></tr>
<tr class="separator:a9e5bb9b2305d89e5006ab729657bd139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c882ec948eca90fd357c008ec450e62"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a1c882ec948eca90fd357c008ec450e62">loadClassProblem</a> (const char *filename)</td></tr>
<tr class="memdesc:a1c882ec948eca90fd357c008ec450e62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read in a raw classification problem (in svmlight format). The values are normalized using the classifier model information.  <a href="classpcl_1_1_s_v_m_classify.html#a1c882ec948eca90fd357c008ec450e62">更多...</a><br /></td></tr>
<tr class="separator:a1c882ec948eca90fd357c008ec450e62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae81b26c1175ab555d1b4874314d4c61e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#ae81b26c1175ab555d1b4874314d4c61e">loadNormClassProblem</a> (const char *filename)</td></tr>
<tr class="memdesc:ae81b26c1175ab555d1b4874314d4c61e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read in a normalized classification problem (in svmlight format). The data are kept whitout normalizing.  <a href="classpcl_1_1_s_v_m_classify.html#ae81b26c1175ab555d1b4874314d4c61e">更多...</a><br /></td></tr>
<tr class="separator:ae81b26c1175ab555d1b4874314d4c61e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49b336159e4a2e65510c6c814eed8a0e"><td class="memItemLeft" align="right" valign="top"><a id="a49b336159e4a2e65510c6c814eed8a0e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a49b336159e4a2e65510c6c814eed8a0e">setProbabilityEstimates</a> (bool set)</td></tr>
<tr class="memdesc:a49b336159e4a2e65510c6c814eed8a0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set whether the classification has to be done with the probability estimate. (the classifier model has to support it). <br /></td></tr>
<tr class="separator:a49b336159e4a2e65510c6c814eed8a0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98351cb37844c007c274895ba067eaa0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a98351cb37844c007c274895ba067eaa0">classificationTest</a> ()</td></tr>
<tr class="memdesc:a98351cb37844c007c274895ba067eaa0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the classification on labelled input dataset. It returns the accuracy percentage. To get the classification result, use getClassificationResult.  <a href="classpcl_1_1_s_v_m_classify.html#a98351cb37844c007c274895ba067eaa0">更多...</a><br /></td></tr>
<tr class="separator:a98351cb37844c007c274895ba067eaa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41a68f2bc37bb8d74a7fbc863a824ea8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a41a68f2bc37bb8d74a7fbc863a824ea8">classification</a> ()</td></tr>
<tr class="memdesc:a41a68f2bc37bb8d74a7fbc863a824ea8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the classification on un-labelled input dataset. To get the classification result, use getClassificationResult.  <a href="classpcl_1_1_s_v_m_classify.html#a41a68f2bc37bb8d74a7fbc863a824ea8">更多...</a><br /></td></tr>
<tr class="separator:a41a68f2bc37bb8d74a7fbc863a824ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38348996b1cccff816a7947cbdb674da"><td class="memItemLeft" align="right" valign="top"><a id="a38348996b1cccff816a7947cbdb674da"></a>
std::vector&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a38348996b1cccff816a7947cbdb674da">classification</a> (<a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> in)</td></tr>
<tr class="memdesc:a38348996b1cccff816a7947cbdb674da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the classification on a single set. <br /></td></tr>
<tr class="separator:a38348996b1cccff816a7947cbdb674da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a008cb8e748576935f45c4d77c177aefb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a008cb8e748576935f45c4d77c177aefb">saveClassProblem</a> (const char *filename)</td></tr>
<tr class="memdesc:a008cb8e748576935f45c4d77c177aefb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the raw classification problem in a file (in svmlight format).  <a href="classpcl_1_1_s_v_m_classify.html#a008cb8e748576935f45c4d77c177aefb">更多...</a><br /></td></tr>
<tr class="separator:a008cb8e748576935f45c4d77c177aefb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0473ccd43205fc95c9f1cf0e527575ea"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#a0473ccd43205fc95c9f1cf0e527575ea">saveNormClassProblem</a> (const char *filename)</td></tr>
<tr class="memdesc:a0473ccd43205fc95c9f1cf0e527575ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the normalized classification problem in a file (in svmlight format).  <a href="classpcl_1_1_s_v_m_classify.html#a0473ccd43205fc95c9f1cf0e527575ea">更多...</a><br /></td></tr>
<tr class="separator:a0473ccd43205fc95c9f1cf0e527575ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:acf652ea11ea0c106b1cbbce00554185c inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="acf652ea11ea0c106b1cbbce00554185c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#acf652ea11ea0c106b1cbbce00554185c">SVM</a> ()</td></tr>
<tr class="memdesc:acf652ea11ea0c106b1cbbce00554185c inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:acf652ea11ea0c106b1cbbce00554185c inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1bb58c6d4ea4cc0bef4343371da4307 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="aa1bb58c6d4ea4cc0bef4343371da4307"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#aa1bb58c6d4ea4cc0bef4343371da4307">~SVM</a> ()</td></tr>
<tr class="memdesc:aa1bb58c6d4ea4cc0bef4343371da4307 inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa1bb58c6d4ea4cc0bef4343371da4307 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc4bad66d55915dd09977192ab8311b5 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="acc4bad66d55915dd09977192ab8311b5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#acc4bad66d55915dd09977192ab8311b5">getLabel</a> (std::vector&lt; int &gt; &amp;labels)</td></tr>
<tr class="memdesc:acc4bad66d55915dd09977192ab8311b5 inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the labels order from the classifier model. <br /></td></tr>
<tr class="separator:acc4bad66d55915dd09977192ab8311b5 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f59b5f036691d050e7d1b8845083732 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a3f59b5f036691d050e7d1b8845083732"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a3f59b5f036691d050e7d1b8845083732">saveClassifierModel</a> (const char *filename)</td></tr>
<tr class="memdesc:a3f59b5f036691d050e7d1b8845083732 inherit pub_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the classifier model in an extern file (in svmlight format). <br /></td></tr>
<tr class="separator:a3f59b5f036691d050e7d1b8845083732 inherit pub_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:ae4c3f1f28b86a9f743f23c049f37b75a"><td class="memItemLeft" align="right" valign="top"><a id="ae4c3f1f28b86a9f743f23c049f37b75a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m_classify.html#ae4c3f1f28b86a9f743f23c049f37b75a">scaleProblem</a> (<a class="el" href="structsvm__problem.html">svm_problem</a> &amp;input, <a class="el" href="structsvm__scaling.html">svm_scaling</a> scaling)</td></tr>
<tr class="memdesc:ae4c3f1f28b86a9f743f23c049f37b75a"><td class="mdescLeft">&#160;</td><td class="mdescRight">It scales the input dataset using the model information. <br /></td></tr>
<tr class="separator:ae4c3f1f28b86a9f743f23c049f37b75a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:a25c695eb4d94ac665b2ecccb4497aa85 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a25c695eb4d94ac665b2ecccb4497aa85"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a25c695eb4d94ac665b2ecccb4497aa85">readline</a> (FILE *input)</td></tr>
<tr class="memdesc:a25c695eb4d94ac665b2ecccb4497aa85 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">To read a line from the input file. Stored in "line_". <br /></td></tr>
<tr class="separator:a25c695eb4d94ac665b2ecccb4497aa85 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae13d89577f55fcff9a570ccf77ee9e37 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae13d89577f55fcff9a570ccf77ee9e37"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ae13d89577f55fcff9a570ccf77ee9e37">exitInputError</a> (int line_num)</td></tr>
<tr class="memdesc:ae13d89577f55fcff9a570ccf77ee9e37 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Outputs an error in file reading. <br /></td></tr>
<tr class="separator:ae13d89577f55fcff9a570ccf77ee9e37 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42bf58b7fe08d473a2f4a595ded0fb4b inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a42bf58b7fe08d473a2f4a595ded0fb4b"></a>
const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a42bf58b7fe08d473a2f4a595ded0fb4b">getClassName</a> () const</td></tr>
<tr class="memdesc:a42bf58b7fe08d473a2f4a595ded0fb4b inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a string representation of the name of this class. <br /></td></tr>
<tr class="separator:a42bf58b7fe08d473a2f4a595ded0fb4b inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9110ca99ee2fa34573133fe4a083fe2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ab9110ca99ee2fa34573133fe4a083fe2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ab9110ca99ee2fa34573133fe4a083fe2">adaptInputToLibSVM</a> (std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt; training_set, <a class="el" href="structsvm__problem.html">svm_problem</a> &amp;prob)</td></tr>
<tr class="memdesc:ab9110ca99ee2fa34573133fe4a083fe2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the input format (vector of <a class="el" href="structpcl_1_1_s_v_m_data.html" title="The structure stores the features and the label of a single sample which has to be used for the train...">SVMData</a>) into a readable format for libSVM. <br /></td></tr>
<tr class="separator:ab9110ca99ee2fa34573133fe4a083fe2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8e2c4441d6288270bdf7c36f4c4bbb2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ad8e2c4441d6288270bdf7c36f4c4bbb2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ad8e2c4441d6288270bdf7c36f4c4bbb2">adaptLibSVMToInput</a> (std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt; &amp;training_set, <a class="el" href="structsvm__problem.html">svm_problem</a> prob)</td></tr>
<tr class="memdesc:ad8e2c4441d6288270bdf7c36f4c4bbb2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the libSVM format (<a class="el" href="structsvm__problem.html">svm_problem</a>) into a easier output format. <br /></td></tr>
<tr class="separator:ad8e2c4441d6288270bdf7c36f4c4bbb2 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ec65c97223faf337970f834f304746f inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a0ec65c97223faf337970f834f304746f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#a0ec65c97223faf337970f834f304746f">loadProblem</a> (const char *filename, <a class="el" href="structsvm__problem.html">svm_problem</a> &amp;prob)</td></tr>
<tr class="memdesc:a0ec65c97223faf337970f834f304746f inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a problem from an extern file. <br /></td></tr>
<tr class="separator:a0ec65c97223faf337970f834f304746f inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac256c5efa13d6759dfc6e77e17eae4e6 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ac256c5efa13d6759dfc6e77e17eae4e6"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ac256c5efa13d6759dfc6e77e17eae4e6">saveProblem</a> (const char *filename, bool labelled)</td></tr>
<tr class="memdesc:ac256c5efa13d6759dfc6e77e17eae4e6 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the raw problem in an extern file. <br /></td></tr>
<tr class="separator:ac256c5efa13d6759dfc6e77e17eae4e6 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae604dbc0d535f8b0064b95cac1a15895 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae604dbc0d535f8b0064b95cac1a15895"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#ae604dbc0d535f8b0064b95cac1a15895">saveProblemNorm</a> (const char *filename, <a class="el" href="structsvm__problem.html">svm_problem</a> prob_, bool labelled)</td></tr>
<tr class="memdesc:ae604dbc0d535f8b0064b95cac1a15895 inherit pro_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the problem (with normalized values) in an extern file. <br /></td></tr>
<tr class="separator:ae604dbc0d535f8b0064b95cac1a15895 inherit pro_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a91beee865836c526427b8cc41a2acc0b"><td class="memItemLeft" align="right" valign="top"><a id="a91beee865836c526427b8cc41a2acc0b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>model_extern_copied_</b></td></tr>
<tr class="separator:a91beee865836c526427b8cc41a2acc0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b9a0595b8508440eacce351a80d1417"><td class="memItemLeft" align="right" valign="top"><a id="a2b9a0595b8508440eacce351a80d1417"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>predict_probability_</b></td></tr>
<tr class="separator:a2b9a0595b8508440eacce351a80d1417"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa019a684e6dc277284d3a9f08c7d66a6"><td class="memItemLeft" align="right" valign="top"><a id="aa019a684e6dc277284d3a9f08c7d66a6"></a>
std::vector&lt; std::vector&lt; double &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>prediction_</b></td></tr>
<tr class="separator:aa019a684e6dc277284d3a9f08c7d66a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb65a7b07c50941541328e63901f96d"><td class="memItemLeft" align="right" valign="top"><a id="a6bb65a7b07c50941541328e63901f96d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>labelled_training_set_</b></td></tr>
<tr class="separator:a6bb65a7b07c50941541328e63901f96d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e12dd4f830021cddc47784c5bbf1372"><td class="memItemLeft" align="right" valign="top"><a id="a0e12dd4f830021cddc47784c5bbf1372"></a>
<a class="el" href="structpcl_1_1_s_v_m_model.html">SVMModel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>model_</b></td></tr>
<tr class="separator:a0e12dd4f830021cddc47784c5bbf1372"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9d24c5f4974b0a3b0b1fbb85383bc5"><td class="memItemLeft" align="right" valign="top"><a id="a4f9d24c5f4974b0a3b0b1fbb85383bc5"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><b>line_</b></td></tr>
<tr class="separator:a4f9d24c5f4974b0a3b0b1fbb85383bc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb878e7f0ce22bfd287b2bb5d90e0b4"><td class="memItemLeft" align="right" valign="top"><a id="a4bb878e7f0ce22bfd287b2bb5d90e0b4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>max_line_len_</b></td></tr>
<tr class="separator:a4bb878e7f0ce22bfd287b2bb5d90e0b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5613f4a7e5c16048d574b82777aa6c0"><td class="memItemLeft" align="right" valign="top"><a id="ae5613f4a7e5c16048d574b82777aa6c0"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>training_set_</b></td></tr>
<tr class="separator:ae5613f4a7e5c16048d574b82777aa6c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0254a960defb5bfdf6c2881d4161671"><td class="memItemLeft" align="right" valign="top"><a id="ae0254a960defb5bfdf6c2881d4161671"></a>
<a class="el" href="structsvm__problem.html">svm_problem</a>&#160;</td><td class="memItemRight" valign="bottom"><b>prob_</b></td></tr>
<tr class="separator:ae0254a960defb5bfdf6c2881d4161671"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad70eb2297758546dcb90305b9eae72f2"><td class="memItemLeft" align="right" valign="top"><a id="ad70eb2297758546dcb90305b9eae72f2"></a>
<a class="el" href="structsvm__scaling.html">svm_scaling</a>&#160;</td><td class="memItemRight" valign="bottom"><b>scaling_</b></td></tr>
<tr class="separator:ad70eb2297758546dcb90305b9eae72f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0ef11f557841224ce3d7bb5997a332"><td class="memItemLeft" align="right" valign="top"><a id="add0ef11f557841224ce3d7bb5997a332"></a>
<a class="el" href="structpcl_1_1_s_v_m_param.html">SVMParam</a>&#160;</td><td class="memItemRight" valign="bottom"><b>param_</b></td></tr>
<tr class="separator:add0ef11f557841224ce3d7bb5997a332"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac03b37af785e13ad213af8f870a3b7db"><td class="memItemLeft" align="right" valign="top"><a id="ac03b37af785e13ad213af8f870a3b7db"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>class_name_</b></td></tr>
<tr class="separator:ac03b37af785e13ad213af8f870a3b7db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:ae5613f4a7e5c16048d574b82777aa6c0 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae5613f4a7e5c16048d574b82777aa6c0"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_s_v_m_data.html">SVMData</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>training_set_</b></td></tr>
<tr class="separator:ae5613f4a7e5c16048d574b82777aa6c0 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0254a960defb5bfdf6c2881d4161671 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ae0254a960defb5bfdf6c2881d4161671"></a>
<a class="el" href="structsvm__problem.html">svm_problem</a>&#160;</td><td class="memItemRight" valign="bottom"><b>prob_</b></td></tr>
<tr class="separator:ae0254a960defb5bfdf6c2881d4161671 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e12dd4f830021cddc47784c5bbf1372 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a0e12dd4f830021cddc47784c5bbf1372"></a>
<a class="el" href="structpcl_1_1_s_v_m_model.html">SVMModel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>model_</b></td></tr>
<tr class="separator:a0e12dd4f830021cddc47784c5bbf1372 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad70eb2297758546dcb90305b9eae72f2 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ad70eb2297758546dcb90305b9eae72f2"></a>
<a class="el" href="structsvm__scaling.html">svm_scaling</a>&#160;</td><td class="memItemRight" valign="bottom"><b>scaling_</b></td></tr>
<tr class="separator:ad70eb2297758546dcb90305b9eae72f2 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add0ef11f557841224ce3d7bb5997a332 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="add0ef11f557841224ce3d7bb5997a332"></a>
<a class="el" href="structpcl_1_1_s_v_m_param.html">SVMParam</a>&#160;</td><td class="memItemRight" valign="bottom"><b>param_</b></td></tr>
<tr class="separator:add0ef11f557841224ce3d7bb5997a332 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac03b37af785e13ad213af8f870a3b7db inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="ac03b37af785e13ad213af8f870a3b7db"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>class_name_</b></td></tr>
<tr class="separator:ac03b37af785e13ad213af8f870a3b7db inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9d24c5f4974b0a3b0b1fbb85383bc5 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a4f9d24c5f4974b0a3b0b1fbb85383bc5"></a>
char *&#160;</td><td class="memItemRight" valign="bottom"><b>line_</b></td></tr>
<tr class="separator:a4f9d24c5f4974b0a3b0b1fbb85383bc5 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb878e7f0ce22bfd287b2bb5d90e0b4 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a4bb878e7f0ce22bfd287b2bb5d90e0b4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>max_line_len_</b></td></tr>
<tr class="separator:a4bb878e7f0ce22bfd287b2bb5d90e0b4 inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb65a7b07c50941541328e63901f96d inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="a6bb65a7b07c50941541328e63901f96d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>labelled_training_set_</b></td></tr>
<tr class="separator:a6bb65a7b07c50941541328e63901f96d inherit pro_attribs_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pro_static_methods_classpcl_1_1_s_v_m"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_classpcl_1_1_s_v_m')"><img src="closed.png" alt="-"/>&#160;静态 Protected 成员函数 继承自 <a class="el" href="classpcl_1_1_s_v_m.html">pcl::SVM</a></td></tr>
<tr class="memitem:af8b6779e2fbd5a636d79c5a8c77cf102 inherit pro_static_methods_classpcl_1_1_s_v_m"><td class="memItemLeft" align="right" valign="top"><a id="af8b6779e2fbd5a636d79c5a8c77cf102"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_s_v_m.html#af8b6779e2fbd5a636d79c5a8c77cf102">printNull</a> (const char *)</td></tr>
<tr class="memdesc:af8b6779e2fbd5a636d79c5a8c77cf102 inherit pro_static_methods_classpcl_1_1_s_v_m"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set for output printings during classification. <br /></td></tr>
<tr class="separator:af8b6779e2fbd5a636d79c5a8c77cf102 inherit pro_static_methods_classpcl_1_1_s_v_m"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="classpcl_1_1_s_v_m.html" title="Base class for SVM SVM (Support Vector Machines).">SVM</a> (Support Vector Machines) classification of a dataset. It can be used both for testing a classifier model and for classify of new data. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a41a68f2bc37bb8d74a7fbc863a824ea8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41a68f2bc37bb8d74a7fbc863a824ea8">&#9670;&nbsp;</a></span>classification()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMClassify::classification </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start the classification on un-labelled input dataset. To get the classification result, use getClassificationResult. </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>

</div>
</div>
<a id="a98351cb37844c007c274895ba067eaa0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98351cb37844c007c274895ba067eaa0">&#9670;&nbsp;</a></span>classificationTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMClassify::classificationTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start the classification on labelled input dataset. It returns the accuracy percentage. To get the classification result, use getClassificationResult. </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>

</div>
</div>
<a id="aafd5d50bf3c35d31db549b0bff7595c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafd5d50bf3c35d31db549b0bff7595c2">&#9670;&nbsp;</a></span>loadClassifierModel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMClassify::loadClassifierModel </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read in a classifier model (in svmlight format). </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>

</div>
</div>
<a id="a1c882ec948eca90fd357c008ec450e62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c882ec948eca90fd357c008ec450e62">&#9670;&nbsp;</a></span>loadClassProblem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMClassify::loadClassProblem </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read in a raw classification problem (in svmlight format). The values are normalized using the classifier model information. </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>
<div class="fragment"><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;      {</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        assert (model_.l != 0);</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160; </div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        <span class="keywordtype">bool</span> out = <a class="code" href="classpcl_1_1_s_v_m.html#a0ec65c97223faf337970f834f304746f">SVM::loadProblem</a> (filename, prob_);</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        <a class="code" href="classpcl_1_1_s_v_m.html#ad8e2c4441d6288270bdf7c36f4c4bbb2">SVM::adaptLibSVMToInput</a> (training_set_, prob_);</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;        <a class="code" href="classpcl_1_1_s_v_m_classify.html#ae4c3f1f28b86a9f743f23c049f37b75a">scaleProblem</a> (prob_, scaling_);</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;      };</div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_classify_html_ae4c3f1f28b86a9f743f23c049f37b75a"><div class="ttname"><a href="classpcl_1_1_s_v_m_classify.html#ae4c3f1f28b86a9f743f23c049f37b75a">pcl::SVMClassify::scaleProblem</a></div><div class="ttdeci">void scaleProblem(svm_problem &amp;input, svm_scaling scaling)</div><div class="ttdoc">It scales the input dataset using the model information.</div></div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_html_a0ec65c97223faf337970f834f304746f"><div class="ttname"><a href="classpcl_1_1_s_v_m.html#a0ec65c97223faf337970f834f304746f">pcl::SVM::loadProblem</a></div><div class="ttdeci">bool loadProblem(const char *filename, svm_problem &amp;prob)</div><div class="ttdoc">Load a problem from an extern file.</div></div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_html_ad8e2c4441d6288270bdf7c36f4c4bbb2"><div class="ttname"><a href="classpcl_1_1_s_v_m.html#ad8e2c4441d6288270bdf7c36f4c4bbb2">pcl::SVM::adaptLibSVMToInput</a></div><div class="ttdeci">void adaptLibSVMToInput(std::vector&lt; SVMData &gt; &amp;training_set, svm_problem prob)</div><div class="ttdoc">Convert the libSVM format (svm_problem) into a easier output format.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ae81b26c1175ab555d1b4874314d4c61e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae81b26c1175ab555d1b4874314d4c61e">&#9670;&nbsp;</a></span>loadNormClassProblem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMClassify::loadNormClassProblem </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read in a normalized classification problem (in svmlight format). The data are kept whitout normalizing. </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>
<div class="fragment"><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;      {</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;        <span class="keywordtype">bool</span> out = <a class="code" href="classpcl_1_1_s_v_m.html#a0ec65c97223faf337970f834f304746f">SVM::loadProblem</a> (filename, prob_);</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;        <a class="code" href="classpcl_1_1_s_v_m.html#ad8e2c4441d6288270bdf7c36f4c4bbb2">SVM::adaptLibSVMToInput</a> (training_set_, prob_);</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;        <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;      };</div>
</div><!-- fragment -->
</div>
</div>
<a id="a008cb8e748576935f45c4d77c177aefb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a008cb8e748576935f45c4d77c177aefb">&#9670;&nbsp;</a></span>saveClassProblem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMClassify::saveClassProblem </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Save the raw classification problem in a file (in svmlight format). </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>
<div class="fragment"><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;      {</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1_s_v_m.html#ac256c5efa13d6759dfc6e77e17eae4e6">SVM::saveProblem</a> (filename, 0);</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;      };</div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_html_ac256c5efa13d6759dfc6e77e17eae4e6"><div class="ttname"><a href="classpcl_1_1_s_v_m.html#ac256c5efa13d6759dfc6e77e17eae4e6">pcl::SVM::saveProblem</a></div><div class="ttdeci">bool saveProblem(const char *filename, bool labelled)</div><div class="ttdoc">Save the raw problem in an extern file.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0473ccd43205fc95c9f1cf0e527575ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0473ccd43205fc95c9f1cf0e527575ea">&#9670;&nbsp;</a></span>saveNormClassProblem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pcl::SVMClassify::saveNormClassProblem </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Save the normalized classification problem in a file (in svmlight format). </p>
<dl class="section return"><dt>返回</dt><dd>false if fails. </dd></dl>
<div class="fragment"><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;      {</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classpcl_1_1_s_v_m.html#ae604dbc0d535f8b0064b95cac1a15895">SVM::saveProblemNorm</a> (filename, prob_, 0);</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;      };</div>
<div class="ttc" id="aclasspcl_1_1_s_v_m_html_ae604dbc0d535f8b0064b95cac1a15895"><div class="ttname"><a href="classpcl_1_1_s_v_m.html#ae604dbc0d535f8b0064b95cac1a15895">pcl::SVM::saveProblemNorm</a></div><div class="ttdeci">bool saveProblemNorm(const char *filename, svm_problem prob_, bool labelled)</div><div class="ttdoc">Save the problem (with normalized values) in an extern file.</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/<a class="el" href="svm__wrapper_8h_source.html">svm_wrapper.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_s_v_m_classify.html">SVMClassify</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
